package com.example.attempt.mapper;

import com.example.attempt.entity.Administrator;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdministratorMapper {
    public List<Administrator> queryAll();
    public Administrator queryById(String adId); //根据用户名查询数据
    public Administrator queryByIdAndP(String adId,String adPpwd);
    public int getNum();
    public int addAdministrator(Administrator admin); //添加数据
    public void deleteAdministrator(String tid);
}
